import objA, {moduleAFn1, moduleAFn2} from './moduleA'

console.log(objA)

let mainObj = {
  name: 'wsj',
  age: 24
}

let rawArray = [1,2,3,4,5]
let list = [...rawArray, 0,0,0,0]
function transformArray(list) {
  return new Promise(async (resolve, reject) => {
    console.log('开始转换～')
    await sleep()
    resolve(1)
  }).then(() => {
    console.log('转换成功～')
  })

}

const sleep = (delay = 1000) => {
  return new Promise(resolve => {
    setTimeout(resolve, delay)
  })
}

transformArray(list)
console.log(mainObj)
moduleAFn1()
moduleAFn2()

